package com.wealth.scsj.p_app.view.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.TextView;

import com.wealth.scsj.p_app.R;
import com.wealth.scsj.p_app.mydefinedview.MyPayDialog;

/**
 * 报名入职申请页面
 * @author qxp
 */
public class EnrolmentPageActivity extends BaseActivity implements View.OnClickListener {

    private TextView mToolbarTitle;
    private ImageView mToolbarTitleLeft;
    /**
     * 请输入您的真实姓名
     */
    private EditText mUserNameEt;
    /**
     * 男
     */
    private RadioButton mSexManRb;
    /**
     * 女
     */
    private RadioButton mSexWomanRb;
    private RadioGroup mSexRg;
    /**
     * 请输入您的手机号
     */
    private EditText mUserMobileEt;
    /**
     * 请输入验证码
     */
    private EditText mMobileCodeEt;
    /**
     * 获取验证码
     */
    private TextView mSendVerifyCodeTv;

    private Button mEnrolmentSubmitBtn;


    @Override
    protected void createView(Bundle savedInstanceState) {
        setContentView(R.layout.activity_enrolment_page);
    }

    @Override
    protected void initView() {

        mToolbarTitle = findViewById(R.id.toolbar_title);
        mToolbarTitleLeft =  findViewById(R.id.toolbar_title_left);
        mUserNameEt =  findViewById(R.id.user_name_et);
        mSexManRb =  findViewById(R.id.sex_man_rb);
        mSexWomanRb =  findViewById(R.id.sex_woman_rb);
        mSexRg = findViewById(R.id.sex_rg);
        mUserMobileEt =  findViewById(R.id.user_mobile_et);
        mMobileCodeEt =  findViewById(R.id.mobile_code_et);
        mSendVerifyCodeTv = findViewById(R.id.send_verify_code_tv);
        mEnrolmentSubmitBtn=findViewById(R.id.enrolment_submit_btn);

    }

    @Override
    protected void initListener() {
        mToolbarTitleLeft.setOnClickListener(this);
        mSexManRb.setOnClickListener(this);
        mSexWomanRb.setOnClickListener(this);
        mSexRg.setOnClickListener(this);
        mSendVerifyCodeTv.setOnClickListener(this);
        mEnrolmentSubmitBtn.setOnClickListener(this);
    }

    @Override
    protected void initData() {

        mToolbarTitle.setText("报名入职");
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            default:
                break;
            case R.id.toolbar_title_left:
                finish();
                break;
            case R.id.sex_man_rb:
                break;
            case R.id.sex_woman_rb:
                break;
            case R.id.sex_rg:
                break;
            case R.id.send_verify_code_tv:
                break;
            case R.id.enrolment_submit_btn:
                new MyPayDialog(EnrolmentPageActivity.this)
                    .setTitleText("面试通知")
                    .setContentText("         尊敬的杨玉珂女士，您已成功报名商超配送岗位请确认您的电话18037475656为您的常用手机号，我们工作人员将在3天之内与您取得联系，并安排您进行面试。届时务必准备好您的身份证、健康证等相关证件。")
                    .setConfirmText("我知道了")
                    .show();
                break;
        }
    }
}
